package com.example.data0306.Adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.data0306.R;
import com.example.data0306.bean.YundingBean;

import org.jetbrains.annotations.NotNull;

public class YundingAdapter extends BaseQuickAdapter<YundingBean, BaseViewHolder> {

    public YundingAdapter() {
        super(R.layout.item_zhenrong);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, YundingBean yundingArticleBean) {

        baseViewHolder.setText(R.id.view_zhengrongname1,yundingArticleBean.getTitle());
        //baseViewHolder.setImageResource(R.id.img_cover,R.drawable.icon_navigation_head_info_bg);
        baseViewHolder.setImageResource(R.id.view_tu01,yundingArticleBean.getIcon1());
        baseViewHolder.setImageResource(R.id.view_tu02,yundingArticleBean.getIcon2());
        baseViewHolder.setImageResource(R.id.view_tu03,yundingArticleBean.getIcon3());
        baseViewHolder.setImageResource(R.id.view_tu04,yundingArticleBean.getIcon4());
        baseViewHolder.setImageResource(R.id.view_tu05,yundingArticleBean.getIcon5());
        baseViewHolder.setImageResource(R.id.view_tu06,yundingArticleBean.getIcon6());
        baseViewHolder.setImageResource(R.id.view_tu07,yundingArticleBean.getIcon7());
        baseViewHolder.setImageResource(R.id.view_tu08,yundingArticleBean.getIcon8());
        baseViewHolder.setImageResource(R.id.view_tu09,yundingArticleBean.getIcon9());
        baseViewHolder.setImageResource(R.id.view_zhenrong_tx,yundingArticleBean.getIcon10());
        baseViewHolder.setText(R.id.view_zhengrong_name2,yundingArticleBean.getName());

    }
}

//public class YundingAdapter {
//}
